package org.darkforest.model;

import org.darkforest.enums.ComplainStateEnum;
import org.darkforest.common.util.DateUtil;

import java.util.List;

/**
 * 
 * 项目名称         :bwmall-common
 * 文件名           :ComplainVo.java
 * 开发公司及作者    :陈超
 * 版本号及开发日期  :Rev. 1.00 (2015年2月21日)
 */
public class ComplainVo extends Complain {
	
	private OrderGoods good;

	private List<OrderGoods> goods;

	private OrderCommonVo common;

	private String appealDatetimeStr;
	private String finalHandleDatetimeStr;

	public String getFinalHandleDatetimeStr() {
		return DateUtil.toIntDateString(super.getFinalHandleDatetime());
	}

	public void setFinalHandleDatetimeStr(String finalHandleDatetimeStr) {
		this.finalHandleDatetimeStr = finalHandleDatetimeStr;
	}

	public OrderGoods getGood() {
		return good;
	}

	public void setGood(OrderGoods good) {
		this.good = good;
	}
	
	public String getComplainDatetimeStr(){
		return DateUtil.toIntDateString(super.getComplainDatetime());
	}
	
	public String getComplainStateStr(){
		ComplainStateEnum e = ComplainStateEnum.getByValue(super.getComplainState());
		if(e == null){
			return "";
		}
		return e.getText();
	}

	public List<OrderGoods> getGoods() {
		return goods;
	}

	public void setGoods(List<OrderGoods> goods) {
		this.goods = goods;
	}

	public OrderCommonVo getCommon() {
		return common;
	}

	public void setCommon(OrderCommonVo common) {
		this.common = common;
	}

	public String getAppealDatetimeStr() {
		return DateUtil.toIntDateString(super.getAppealDatetime());
	}

	public void setAppealDatetimeStr(String appealDatetimeStr) {
		this.appealDatetimeStr = appealDatetimeStr;
	}
}
